home *** CD-ROM | disk | FTP | other *** search
- Path: colossus.holonet.net!russell
- From: russell@news.mdli.com (Russell Blackadar)
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Subject: Re: Hungarian notation
- Followup-To: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Date: 21 Jan 1996 21:01:55 GMT
- Organization: HoloNet National Internet Access System: 510-704-1058/modem
- Message-ID: <4du9k3$l3j@colossus.holonet.net>
- References: <30C40F77.53B5@swsbbs.com> <4cvu68$2jb@macaw.cyberport.com> <4d21og$iab@news.xmission.com> <4d2ok0$69s@beach.and.nl> <4dtv3gINNo9u@keats.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: jubal.mdli.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Sorry to continue this thread, but
- Kazimir Kylheku (c2a192@ugrad.cs.ubc.ca) wrote:
- [...]
- : If anyone wrote code with random consonants thrown in front of every perfectly
- : good name, I'd fire them on the spot...
-
- A little harsh, no? Not that I'm a big fan of HN, myself.
-
- : > typedef char* empnm_t;
- : > typedef char* beernm_t;
-
- : Even that is going overboard. Someone will later see "empnm_t", and wonder what
- : the heck it is...
-
- Well, the answer to his question is, it's an empnm_t, at the level of
- abstraction of interest to the code it appears in. Think OOP! There
- are times when this sort of thing is essential (for portability, e.g.
- see below) and other times when it just makes good OO sense. If it's
- hard to find out what an empnm_t "really" is, maybe it *should* be hard.
- Not everywhere, to be sure, nor in every program.
-
- : [...] Real compilers will detect structure equivalence between
- : types so that you don't have to obfuscate your code with confusing type names.
- : To implement domains, just lobotomize the compiler by removing the structure
- : equivalence checking so that size_t and time_t become incompatible types.
-
- Huh? Your example contradicts your point, if I understand you right.
- I fail to see how size_t could be said to be "compatible" with time_t,
- with or without lobotomy. For starters, time_t is 8 bytes and size_t
- is 4, on one machine I use.
- --
- Russell Blackadar, russell@mdli.com
-